package ua.yandex.skipass;

import java.util.Calendar;

public class HolidayLimitedPassFactory implements PassFactory {
    private Calendar expirationDate;
    private ClimbType climbType;

    public HolidayLimitedPassFactory(ClimbType climbType, Calendar defaultExpirationDate) {
        this.expirationDate = defaultExpirationDate;
        this.climbType = climbType;
    }

    @Override
    public SkiPass generateSkiPass() {
        return new HolidayLimitedPass(climbType, expirationDate);
    }
}
